
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Function;
import cn.edu.scau.cmi.hombio.domain.Role;
import cn.edu.scau.cmi.hombio.domain.RoleAuthority;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for RoleAuthority entities
 * 
 */
public interface RoleAuthorityService {

	/**
	* Delete an existing RoleAuthority entity
	* 
	 */
	public void deleteRoleAuthority(RoleAuthority roleauthority);

	/**
	* Return a count of all RoleAuthority entity
	* 
	 */
	public Integer countRoleAuthoritys();

	/**
	* Load an existing RoleAuthority entity
	* 
	 */
	public Set<RoleAuthority> loadRoleAuthoritys();

	/**
	 */
	public RoleAuthority findRoleAuthorityByPrimaryKey(Integer id);

	/**
	* Save an existing Role entity
	* 
	 */
	public RoleAuthority saveRoleAuthorityRole(Integer id_1, Role related_role);

	/**
	* Delete an existing Role entity
	* 
	 */
	public RoleAuthority deleteRoleAuthorityRole(Integer roleauthority_id, Integer related_role_id);

	/**
	* Return all RoleAuthority entity
	* 
	 */
	public List<RoleAuthority> findAllRoleAuthoritys(Integer startResult, Integer maxRows);

	/**
	* Delete an existing Function entity
	* 
	 */
	public RoleAuthority deleteRoleAuthorityFunction(Integer roleauthority_id_1, Integer related_function_id);

	/**
	* Save an existing RoleAuthority entity
	* 
	 */
	public void saveRoleAuthority(RoleAuthority roleauthority_1);

	/**
	* Save an existing Function entity
	* 
	 */
	public RoleAuthority saveRoleAuthorityFunction(Integer id_2, Function related_function);
}